import React from 'react';
import ReactDOM from 'react-dom/client';
import './index.css';
import App from './App';
import './app/store';
import store from './app/store';
//1. 安装 react-redux
//2. 导入 react-redux 中 Provider 组件
import {Provider} from 'react-redux';

const root = ReactDOM.createRoot(document.getElementById('root'));
root.render(
  // 3. 使用 Provider 对子组件进行包裹
  <Provider store={store}>
    <App />
  </Provider>
);



